WP_Defender\Controller\Recaptcha D

Total Complexity 152
Dependencies 11
Dependents 3
Total lines 1,040
Lines of code 660
Logical lines of code 304
Comment lines 267
Methods 35
Properties 11

Methods 35

Method Rating Maintainability Complexity Lines of code
add_actions()
B
37 22 69
data_frontend()
B
39 15 63
load_recaptcha_preview()
A
34 8 115
display_recaptcha()
A
44 11 46
validate_captcha_field_on_wpmu_registration()
S
56 7 17
validate_captcha_field_on_login()
S
56 6 20
declare_variables()
S
54 6 20
add_scripts_for_lazy_load()
S
59 6 14
is_woocommerce_page()
S
61 5 12
display_login_recaptcha()
S
51 3 40
__construct()
S
55 4 19
get_api_url()
S
57 4 18
validate_captcha_field_on_woo_registration()
S
62 5 10
maybe_validate_captcha_for_lostpassword()
S
66 5 7
add_scripts()
S
50 3 29
validate_captcha_field_on_comment()
S
63 4 11
recaptcha_response()
S
58 3 15
save_settings()
S
52 2 28
dashboard_widget()
S
62 3 12
validate_captcha_field_on_buddypress_group()
S
62 3 11
validate_captcha_field_on_woo_login()
S
63 3 10
validate_captcha_field_on_registration()
S
64 3 10
export_strings()
S
77 2 3
import_data()
S
69 2 7
script_loader_tag()
S
70 2 6
validate_captcha_field_on_woo_checkout()
S
67 2 7
display_signup_recaptcha()
S
68 2 7
validate_captcha_field_on_buddypress_registration()
S
72 2 5
display_buddypress_recaptcha()
S
65 2 9
validate_captcha_field_on_lostpassword()
S
73 2 5
remove_settings()
S
98 1 1
remove_data()
S
82 1 3
to_array()
S
82 1 3
comment_form_defaults()
S
75 1 4
script_data()
S
76 1 4